package com.dogegg.lbblog.support;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class DefaultLogProcessor implements LogProcessor {

    private static final Logger logger = LoggerFactory.getLogger(DefaultLogProcessor.class);

    @Override
    public void process(LogProcessRecord record) {
        logger.info("record [source:{}] [labels:{}] [content:{}] [operator:{}] [variable:{}]]",
                record.getSource(),
                record.getLabels(),
                record.getContent(),
                record.getUser().getName(),
                record.getVariable());
    }
}
